package com.example.fly.pushdemo.smack.extension;

import android.content.Intent;

import com.orhanobut.logger.Logger;

import xmpp.androidpush.aidl.PushIqMessage;
import xmpp.androidpush.aidl.PushMessage;
import xmpp.androidpush.service.PushService;

public class MyPushService extends PushService {



    public void onDestroy() {
        super.onDestroy();
    }

    protected boolean receiveMessage(PushMessage paramPushMessage) {

//        Logger.v(paramPushMessage.toString());
        Logger.v("pushMessage"+paramPushMessage.getMsg());
        pasrePushMessage(paramPushMessage);

        return true;
    }

    protected void sendOfflineMessage() {
    }

    @Override
    protected boolean receiveIqMessage(String msg) {
        Logger.v("PushIqMessage"+msg);
        return true;
    }

    private void pasrePushMessage(PushMessage paramPushMessage) {


        String msg =  paramPushMessage.getMsg();

    }
}